
import { type RouteRecordRaw } from 'vue-router'
export interface Meat {
    transition?: string;
    menuName?: string;
    resourceId?: string;
}
export type RouteRecordRawNew = Omit<RouteRecordRaw, 'component' | 'children' | 'meta'> & {
    component: string | any
    children?: RouteRecordRawNew[],
    meta?: Meat
}
export const routesList: RouteRecordRawNew[] = [
    {
        path: '/utools',
        name: 'utools',
        component: 'utools/index.vue',
        meta: {
            menuName: 'utools'
        },
        redirect: '/utools/home',
        children: [
            {
                path: '/utools/home',
                name: 'home',
                component: 'utools/children/HomeView.vue',
                meta: {
                    menuName: 'home'
                }
            },
            {
                path: '/utools/refCom',
                name: 'refCom',
                component: 'utools/children/refCom.vue',
                meta: {
                    menuName: 'refCom'
                }
            },
            {
                path: '/utools/reactiveCom',
                name: 'reactiveCom',
                component: 'utools/children/reactiveCom.vue',
                meta: {
                    menuName: 'reactiveCom'
                }
            },
            {
                path: '/utools/tofefTorefsTorawCom',
                name: 'tofefTorefsTorawCom',
                component: 'utools/children/tofefTorefsTorawCom.vue',
                meta: {
                    menuName: 'tofefTorefsTorawCom'
                }
            },
            {
                path: '/utools/watchWatchEffCoumputed',
                name: 'watchWatchEffCoumputed',
                component: 'utools/children/watchWatchEffCoumputed.vue',
                meta: {
                    menuName: 'watchWatchEffCoumputed'
                }
            },
            {
                path: '/utools/passByValueEmitProps',
                name: 'passByValueEmitProps',
                component: 'utools/children/passByValueEmitProps.vue',
                meta: {
                    menuName: '父子组件传值and内置组件 suspense异步组件'
                }
            },
            {
                path: '/utools/vLazy',
                name: 'vLazy',
                component: 'utools/children/vLazy.vue',
                meta: {
                    menuName: '图片懒加载'
                }
            },
            {
                path: '/utools/newCss',
                name: 'newCss',
                component: 'utools/children/newCss.vue',
                meta: {
                    menuName: 'newCss新特性'
                }
            },

            {
                path: '/utools/about',
                name: 'about',
                // route level code-splitting
                // this generates a separate chunk (About.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: 'utools/children/AboutView.vue',
                meta: {
                    menuName: 'about'
                }
            },
            {
                path: '/utools/quillEditor',
                name: 'quillEditor',
                // route level code-splitting
                // this generates a separate chunk (About.[hash].js) for this route
                // which is lazy-loaded when the route is visited.
                component: 'utools/children/quillView/index.vue',
                meta: {
                    menuName: 'quillEditor'
                }
            },
        ]
    },

]